﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ruku_list.aspx.cs" Inherits="admin_ruku_ruku_list" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>入库信息</title>
<link type="text/css" rel="stylesheet" href="../scripts/ui/skins/Aqua/css/ligerui-all.css" />
<link type="text/css" rel="stylesheet" href="../images/style.css" />
<link type="text/css" rel="stylesheet" href="../select/skins/style.css"  />
<script type="text/javascript" src="../scripts/jquery/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="../scripts/ui/js/ligerBuild.min.js"></script>
<script type="text/javascript" src="../js/function.js"></script>
<script type="text/javascript" src="../datepicker/WdatePicker.js"></script>
<script type="text/javascript" src="../select/js/select_split.js"></script>
    <script type="text/javascript">
        $(function () {
            //显示关闭高级选项
            $("#upordown").toggle(function () {
                $(this).text("关闭搜索条件");
                $(this).removeClass();
                $(this).addClass("up-01");
                $(".upordown").show();
            }, function () {
                $(this).text("显示搜索条件");
                $(this).removeClass();
                $(this).addClass("up-02");
                $(".upordown").hide();
            });
        });
        //重新加载css
        $(document).ready(function () {
            SetRowClass();
            ReloadJs();
        })      
    </script>
</head>
<body class="mainbody">
<form id="form1" runat="server">
 <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>   
    <div class="navigation"><span id="upordown" class="up-02">显示搜索条件</span>首页 &gt; 控制面板 &gt; 入库信息</div>
    <div class="tools_box"><div class="upordown hide">
    <div class="select_box2">搜索条件：                     
            报关单号：<asp:TextBox ID="txtDeclaID" CssClass="txtInput" runat="server"></asp:TextBox>&nbsp;
            入库状态： <select runat="server" id="selStatus"  autowidth="true">
                            <option value="" selected="selected">选择状态...</option>
                            <option value="0">正在入库</option>
                            <option value="1">完成</option>
                      </select>&nbsp; 
            起始时间：<asp:TextBox ID="txtStartTime" runat="server" CssClass="txtInput small3 wdate" onFocus="var txtEndTime=$dp.$('txtEndTime');WdatePicker({onpicked:function(){txtEndTime.focus();},maxDate:'#F{$dp.$D(\'txtEndTime\')}'})" ></asp:TextBox>&nbsp;--
            截止时间：<asp:TextBox ID="txtEndTime" runat="server" CssClass="txtInput small3 wdate" onFocus="WdatePicker({minDate:'#F{$dp.$D(\'txtStartTime\')}'})" ></asp:TextBox>&nbsp;
            
    </div>
    <div class="select_box">
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;入库仓库：<select runat="server" id="selStorage" autowidth="true" ></select>&nbsp;&nbsp; &nbsp;
            入库方式： <select runat="server" id="selRukuWay" autowidth="true" ></select>&nbsp;&nbsp;
            经办人：&nbsp;<asp:TextBox ID="txtTransactor" CssClass="txtInput" runat="server"></asp:TextBox>&nbsp;
      </div>
      </div>    
	    <div class="tools_bar">
		    <a href="ruku_edit.aspx?action=<%=ActionEnum.Add %>" class="tools_btn"><span><b class="add">添加入库</b></span></a>
		    <a href="javascript:void(0);" onclick="checkAll(this);" class="tools_btn"><span><b class="all">全选</b></span></a>
            <asp:LinkButton ID="btnDelete" runat="server" CssClass="tools_btn" onclick="btnDelete_Click" 
            OnClientClick="return ExePostBack('btnDelete','删除入库数据后不可恢复，您确定吗？');"><span><b class="delete">批量删除</b></span></asp:LinkButton>
            <asp:LinkButton ID="lbtnSearch" runat="server" CssClass="tools_btn" OnClick="lbtnSearch_Click" ><span><b class="search">高级查询</b></span></asp:LinkButton>
            <asp:LinkButton ID="lbtnReset" runat="server" CssClass="tools_btn" OnClick="lbtnReset_Click"><span><b class="recover">重置条件</b></span></asp:LinkButton>
            <asp:LinkButton ID="lbtnFinish" runat="server" CssClass="tools_btn" OnClick="lbtnFinish_Click"><span><b class="combine">完成入库</b></span></asp:LinkButton>
        </div>
    </div>
     <!--列表展示.开始-->
    <asp:UpdatePanel ID="UpdatePanel1" runat="server"><ContentTemplate>
    <asp:Repeater ID="rptList" runat="server">
    <HeaderTemplate>
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="msgtable">
      <tr>
        <th width="4%">选择</th>
        <th  align="left" >报关单号</th>
        <th width="8%" align="left">入库状态</th>       
        <th width="11%" align="left">入库时间</th>
        <th width="6%" >入库仓库</th>
        <th width="9%" align="left">入库方式</th>
        <th width="12%" align="left">报关行名称</th>    
        <th width="9%" align="left">经办人</th>
        <th width="9%" align="left">掏箱组</th>
        <th width="9%" align="left">理货员</th>
       <%-- <th width="9%" align="left">客户</th>--%>
       
        <th width="8%" >操作</th>
      </tr>
    </HeaderTemplate>
    <ItemTemplate>
      <tr>  
        <td align="center"><asp:CheckBox ID="chkId" CssClass="checkall" runat="server" />
        <asp:HiddenField ID="hidId" Value='<%#Eval("decla_id")%>' runat="server" /></td>
        <td><a href="ruku_edit.aspx?action=<%#ActionEnum.Edit %>&decla_id=<%#Eval("decla_id")%>"><%#Eval("decla_id")%></a></td>
        <td ><%#GetRukuStatus(Convert.ToInt32(Eval("ruku_status")))%></td>     
        <td><%#string.Format("{0:yyyy-MM-dd HH:mm}",Eval("ruku_time"))%></td>
        <td align="center"><span title='<%#Eval("ruku_storage")%>'><%#Eval("ruku_storage")%></span></td>
        <td><%#Eval("ruku_way")%></td>
        <td runat="server" id="customsbroker" ><%#Eval("customs_broker")%></td>
        <td><%#Eval("transactor")%></td>
        <td><%#Eval("unstuffing_group")%></td>
        <td><%#Eval("tallyman")%></td>
       <%-- <td><%#Eval("customer")%></td>--%>     
        <td align="center"><a href="ruku_edit.aspx?action=<%#ActionEnum.Edit %>&decla_id=<%#Eval("decla_id")%>">查看</a> |
        <a href="ruku_edit.aspx?action=<%#ActionEnum.Edit %>&decla_id=<%#Eval("decla_id")%>">修改</a></td> 
      </tr>
    </ItemTemplate>
    <FooterTemplate>
      <%#rptList.Items.Count == 0 ? "<tr><td align=\"center\" colspan=\"11\">暂无记录</td></tr>" : ""%>
      </table>
    </FooterTemplate>
    </asp:Repeater>
     <!--列表展示.结束-->
    <div class="line15">
    </div>
    <div class="page_box">
        <div id="PageContent" runat="server" class="flickr right">
        </div>
        <div class="left"><%--显示
            <asp:DropDownList ID="ddlNum" runat="server" CssClass="select2" AutoPostBack="True"
                OnSelectedIndexChanged="ddlNum_SelectedIndexChanged1">
                <asp:ListItem>10</asp:ListItem>
                <asp:ListItem>15</asp:ListItem>
                <asp:ListItem>20</asp:ListItem>
                <asp:ListItem>50</asp:ListItem>
                <asp:ListItem>1</asp:ListItem>
            </asp:DropDownList>&nbsp;条/页--%>
              显示 <asp:Button ID="btn10" runat="server" Text="10" CssClass="btnnum" onclick="btn10_Click"   />
             <asp:Button ID="btn20" runat="server" Text="20" CssClass="btnnum" onclick="btn20_Click"   />
             <asp:Button ID="btn50" runat="server" Text="50" CssClass="btnnum" onclick="btn50_Click"   />条/页&nbsp;
            共<asp:Label ID="lblCount" runat="server" Text=""></asp:Label>条记录
        </div>
        <webdiyer:AspNetPager ID="AspNetPager1" CssClass="paginator" CurrentPageButtonClass="cpb"
            runat="server" HorizontalAlign="Right" PageSize="10" OnPageChanged="AspNetPager1_PageChanged"
            NumericButtonCount="8" CurrentPageButtonPosition="Center" ShowDisabledButtons="false"
            AlwaysShowFirstLastPageNumber="true" NextPageText="&nbsp;&nbsp;&nbsp;下一页&nbsp;&nbsp;&nbsp;" PrevPageText="&nbsp;&nbsp;&nbsp;上一页&nbsp;&nbsp;&nbsp;" ShowFirstLast="False">
        </webdiyer:AspNetPager>
    </div>
     </ContentTemplate></asp:UpdatePanel>
    <div class="line10"></div>

</form>
</body>
</html>
